package com.ruoyi.web.controller.carte;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.system.domain.request.*;
import com.ruoyi.system.service.carte.job.*;
import com.ruoyi.system.service.carte.server.ICarteStatus;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * carte服务器Controller
 * 
 * @author ruoyi
 * @date 2024-02-28
 */
@Api( tags = {"carte服务器运行时相关接口"})
@Controller
@RequestMapping("/system/carteRuntime")
public class XxkCarteRuntimeController extends BaseController
{
    @Autowired
    private ICarteStatus carteStatusImpl;

    @ApiOperation(value = "检索服务器状态。状态包含有关服务器本身（操作系统、内存等）以及服务器上存在的作业和转换的信息。")
    @PostMapping("/status")
    @ResponseBody
    public String status(@RequestBody CarteStatusRequest carteRequest)
    {
        String result = carteStatusImpl.status(carteRequest);
        return result;
    }

}
